package xyz.ddlnt.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Time;
import java.time.LocalDateTime;

/**
 * @author ZZULI_SE 210910
 * @data 2025/5/27 17:01
 */
@Schema(description = "消息传输")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MessageDTO {

    @Schema(description = "发送方(用户) id")
    private Long senderId;
    @Schema(description = "接收方 id")
    private Long receiverId;

    // 第三个条件：可见性 1

    @Schema(description = "时间锚点")
    private LocalDateTime timeAnchorPoint;
    @Schema(description = "消息版本号")
    private Integer senderVersion;

    @Schema(description = "分页信息")
    private PageDTO pageDTO;
}
